home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / mcd_june.zip / OUTPUT.TXT < prev    next >
Text File  |  1993-07-01  |  17KB  |  293 lines

  1. From the June Mastering CorelDRAW newsletter
  2.  
  3. PostScript Output Strategies
  4.  
  5. John Cornicello
  6.  
  7. I think youÆd probably agree that CorelDRAW 4 is the most powerful, 
  8. yet easy-to-use, graphics program available today. However, along with 
  9. that power and ease of use comes a lot of responsibility in preparing 
  10. images that can be output successfully on laser printers and imagesetters.
  11. Fountain fills, PostScript pattern fills, fractal texture fills: These are all 
  12. great-looking features, and a new Draw user must feel like a kid in a 
  13. candy store. But good design - and workable output - depends a lot on 
  14. control and restraint. Just because the features are available doesn't 
  15. mean that you have to use them in every document you create.
  16. This month IÆm going to discuss some problems and solutions for 
  17. printing from Draw to PostScript printers, both desktop laser printers 
  18. and service bureau imagesetters. You will find that more than half of the 
  19. job of creating files that print correctly is in understanding the 
  20. capabilities of the output device that will be used, whether itÆs your 
  21. desktop PostScript laser or color printer, a 1,200, 2,400 or 3,600 dpi 
  22. imagesetter, or a slide imager. The intent of this article is to get you to 
  23. think ahead.
  24. The first thing to recognize is that a documentÆs ability to print on a 300 
  25. dpi PostScript laser printer is no guarantee that it will be able to output 
  26. on a high-resolution imagesetter. Things like memory management - 
  27. and the sheer volume of dots to be managed - will be quite different.  
  28. Take a moment to consider how many dots are being handled by various 
  29. output devices. A 300 dpi laser printer has to manage around 8,415,000 
  30. pixels for an 8╜   by 11-inch page. The same page sent to a 1,200 dpi 
  31. printer will have too many pixels for my calculator to display (in fact, itÆs 
  32. about 134,640,000 pixels, according to the Windows Calculator). And 
  33. at 2,400 dpi the printer is handling 538,560,000 dots. 
  34. Since the imagesetter has to handle 64 times as many pixels, but has 
  35. access to a lot less than 64 times the memory of a laser printer, a 
  36. different memory management scheme has to be used. What happens? 
  37. Usually it works well, but there is always that one super-complex, last- 
  38. minute rush job that will find the differences between them. Let's just 
  39. hope it isn't your job.
  40.  
  41. PostScript Errors I Have Known
  42. In addition to memory management, PostScript uses dictionaries to hold 
  43. pairs of objects. Some applications will use an existing dictionary, called 
  44. USERDICT. This is a device dependent dictionary that will hold 200 
  45. entries. Different printers or PostScript versions will use a different 
  46. number of entries for their internal housekeeping. More elaborate 
  47. devices, such as imagesetters, may need to use more of the USERDICT 
  48. space, leaving less room for software to store entries. This can lead to a 
  49. DICTFULL error on an imagesetter for a file that outputs with no 
  50. problems on a laser printer. The user doesn't have much say in 
  51. correcting this situation; it is a limitation of the program generating the 
  52. PostScript code, in this case Draw.
  53. When PostScript devices encounter an error, the normal procedure is 
  54. that the job is aborted, data is dumped and the processor returns to its 
  55. ready state, awaiting the next job. The only indication that an error has 
  56. occurred is that nothing is printed. ItÆs not a particularly helpful or 
  57. friendly system. But there is some hope.
  58. If you are running into this situation of nothing printing, you can enable 
  59. a PostScript error handler. With Draw 4 you have a couple of ways to do 
  60. this. First, the Microsoft PostScript driver has a built-in error handler. In 
  61. the Windows Control Panel, double-click on the Printers icon, select 
  62. your PostScript device from the list of available printers, and click on 
  63. Setup. Then select Options and Advanced. At the lower-left of the 
  64. Advanced Options dialog box is a check box to enable the error handler.
  65. Choosing this option will cause the error handler code to be enabled for 
  66. each page that is printed through the driver. This won't have any effect 
  67. on most print jobs, but it will print an error message should a PostScript 
  68. error occur. Draw also includes a standalone error handler that can be 
  69. downloaded to a PostScript printer before printing. This error handler is 
  70. a utility that remains resident in your printerÆs memory, sitting there in 
  71. the background until the printer is reset. As with the Windows error 
  72. handler, it has no effect on normal print jobs but should jump into 
  73. action should an error occur.
  74. During installation, Draw created a subdirectory under 
  75. COREL40\DRAW called EHANDLER. This directory contains six files 
  76. including the error handler, a program to print out information about 
  77. your PostScript printer, a readme file, two batch files to download the 
  78. error handler to LPT1 or LPT2, and a Windows icon. The error handler 
  79. can be downloaded to the printer using the included batch files (edit 
  80. them in Notepad if you need to use a different printer port), or it can 
  81. simply be copied to the printer port from DOS (COPY EHANDLER.PS 
  82. LPT1). The error handler will then set itself up in the printer's memory 
  83. until the printer is reset or turned off.
  84. If an error occurs in your print job, the error handler should print a 
  85. partial page, then print an additional page with the error message. 
  86. PostScript error messages consist of two parts. First the error message, 
  87. then the offending command. A typical error looks like this:
  88.  
  89. %%[ERROR: limitcheck  OFFENDINGCOMMAND: lineto]%%
  90.  
  91. Typical errors are the previously mentioned DICTFUL, LIMITCHECK, 
  92. IOERROR, RANGECHECK, and TIMEOUT (there are actually about 30 
  93. possible PostScript errors). The most common errors associated with 
  94. Draw files are TIMEOUT and LIMITCHECK. A TIMEOUT error means that 
  95. too much time has elapsed between the printer's receiving two parts of 
  96. the same job. This can happen on complex jobs on which the printer is 
  97. busy digesting some information, while the PC thinks that the printer 
  98. has stopped responding.
  99.  
  100. Timeout Errors
  101. The TIMEOUT error may be corrected by changing timeout settings in 
  102. Windows. If you are printing directly from Windows to the PostScript 
  103. device, you can change the TransmissionRetryTimeout value in the 
  104. WIN.INI file. You can do this by directly editing WIN.INI in Notepad, 
  105. or by running the Windows Control Panel, double-clicking on the 
  106. Printers icon and clicking on Connect. The default is usually 45 or 90. 
  107. Change this to 999, save the file if youÆre editing it in Notepad, and then 
  108. restart Windows. This tells Windows to keep waiting for the printer to 
  109. respond, and not simply give up after 45 seconds. This is a Windows 
  110. timeout, not a printer timeout.
  111. To set a printer timeout, you have to edit another section of the 
  112. WIN.INI file - there is no way to set this with the Control Panel. Scroll 
  113. down to find the specific section for your PostScript printer and printer 
  114. port. A typical entry might look like:
  115.  
  116.     [Agfa 9000 Series PS,LPT2.DOS]
  117.     feed1=54
  118.     EpsFile=
  119.     advflags=136
  120.     orient=1
  121.     LandscapeOrient=270
  122.     margins=511
  123.     EPS=0
  124.     prtvm=2396
  125.     timeout=999
  126.  
  127. Adding the last timeout= line to this section will set a printer timeout 
  128. value that may help get the document to output. (The 
  129. LandscapeOrient=270 line, by the way, is one you should add if youÆre 
  130. experiencing .EPS files being rotated when theyÆre placed on landscape 
  131. orientation pages. This is a problem that plagues PageMaker users.)
  132.  
  133. Limitcheck Errors
  134. A LIMITCHECK error means that something in the file has exceeded the 
  135. capabilities of the printer. Looking at the offending command will give a 
  136. bit more information about the LIMITCHECK error. Some possibilities 
  137. here are CURVETO or LINETO. This usually means that an element on the 
  138. page is too complex for the printer to handle. There may be too many 
  139. nodes on a curved line, or a curved line is being used as a clipping path 
  140. for a complex fill.
  141. LIMITCHECK errors will require a bit more work to fix. First, you will 
  142. have to figure out what element on the page is causing the problem, 
  143. then you will have to edit it. Using the Draw error handler, you should 
  144. get a partially printed page that includes all of the objects up to (but not 
  145. including) the problem object. Because the PostScript output is created 
  146. in the same order as the objects were placed on the page in Draw, you 
  147. can figure out which item on the partial page was the last printed. Select 
  148. that item on the screen in Draw, then press Shift-Tab to select the next 
  149. object. That is usually the problem object.
  150. The PostScript output is created in the same order as the objects were 
  151. created on the page in Draw. You can figure out which item on the 
  152. partially printed page was the last one printed by selecting the last object 
  153. created, then hold down the Shift key and press Tab repeatedly. This will 
  154. select each object in the opposite order of placement. Keep hitting the 
  155. TAB key while it is selecting items that did not print until you find the 
  156. first element that appears on the printed page (the last element to print 
  157. correctly). When the last element is selected press the TAB key alone 
  158. (not shifted) and you will most likely have located the offending object.
  159. You need to lessen the complexity of that object. If youÆre lucky, youÆll 
  160. find you have selected a curved object with an overabundance of nodes. 
  161. Use Draw 4's Auto-Reduce command (in the Node Edit roll-up) to 
  162. reduce the complexity of the object. If the object doesn't have a fill, you 
  163. can try to carve up the object up into smaller, less complex objects, by 
  164. breaking nodes and then using the Break Apart command from the 
  165. Arrange menu.
  166. If there are a number of complex objects in the document, you should 
  167. try some of the output strategies mentioned on page 16 of last month's 
  168. newsletter, such as lowering the PSComplexityThreshold value in DrawÆs 
  169. CORELPRN.INI file (located in the COREL40\CONFIG directory), or 
  170. raising the Flatness setting when you print (moved from the Print dialog 
  171. box in Draw 3 to the Options sub-dialog box of Print in Draw 4). You 
  172. should also have technical document 2023 faxed to you from CorelÆs 
  173. interactive fax service. Dial (613) 728-0826 and press 3080 to enter the 
  174. service.
  175.  
  176. Dealing with the Service Bureau
  177. Now that you have some background on possible problems, itÆs time to 
  178. look at a typical service bureau situation. The following are generalities, 
  179. but they will apply in most cases; however, you should contact the 
  180. bureau in advance to find out if it can offer any specific information for 
  181. its particular equipment setup.
  182. Once you have created (and saved) your Draw file, select Print from the 
  183. File menu. Select the proper imagesetter device in the printer list and 
  184. click on Print To File under the printer name. If the file will be 
  185. downloaded to the imagesetter from a Macintosh printer, then also 
  186. select For Mac (this will strip out two Control-D characters that 
  187. Windows normally includes in PostScript print files).
  188. Click on the Printer button to select the proper paper size (remember, if 
  189. you need crop marks and printer information, you have to select a paper 
  190. size that is larger than your page size, such as LetterExtra or 
  191. TabloidExtra). Click on OK.
  192. Click on the Options button to set printer information such as crop 
  193. marks, separations and file information (again, remember that printer 
  194. information, like crop marks, will require a paper size larger than the 
  195. page size). Click on OK.
  196. Next, click on OK in the Print dialog box. This will open the Print To 
  197. File box where you can name the output file, and select the drive and 
  198. directory to store it. Do yourself a favor and print to the hard disk, then 
  199. later copy the file to a floppy drive if you need to bring a disk to the 
  200. service bureau. This will save time, and will provide you with a backup 
  201. file in case there is a problem with the floppy.
  202. The result of this will be a PostScript print-to-disk file (not an 
  203. encapsulated PostScript .EPS) file. From a PC, the file can simply be 
  204. copied to the printer port at the DOS prompt (COPY /B 
  205. FILENAME.PRN LPT1:). You can also use the Dumper program 
  206. included on the April newsletter disk. From a Macintosh, the file will 
  207. have to be downloaded to the imagesetter. Most Macintosh font 
  208. downloaders have a provision for downloading PostScript files to the 
  209. printer. (If youÆre using PostScript fonts, check Steve ShubitzÆs April 
  210. type column on font management details.)
  211. If all has gone well, the file should zip right through the PostScript RIP 
  212. and imagesetter or slide imager to provide you with beautiful output of 
  213. your file. If not, itÆs time to go back and look at the original file again. 
  214. The following are some principles to guide you in creating your files for 
  215. imagesetting.
  216.  
  217. Creating for Imagesetting
  218. The main thing to do is to keep things as simple as possible. However, 
  219. this isn't always so obvious. Some things to keep in mind are to delete 
  220. objects that aren't part of the image. Do not simply cover them with 
  221. white boxes; even though they don't show up, they still have to be 
  222. processed by the printer. Even if files containing a large number of such 
  223. objects do print they may end up costing you, because many service 
  224. bureaus charge a premium for files that take a long time to print. 
  225. If you import scanned images, crop them in the scanning program or 
  226. image editor to cut down on file size - don't crop them in the final 
  227. output program, such as Draw. The same thing applies for rotation - 
  228. rotate the image in an image editor, such as CorelPHOTO-PAINT. 
  229. When you scan line art, art run it through CorelTRACE to convert the 
  230. bitmap image to vector format. If you scan photographs, don't over-
  231. scan. It is a common error to scan photographs at too high a resolution. 
  232. Typically, you need to scan at only 1╜   to 2 times the line screen of the 
  233. output device. So if you are imagesetting with a screen of 133 lpi, you 
  234. should scan at 200 to 270 dpi. Anything higher will just add more data 
  235. without any benefit.
  236. Don't embed .EPS files inside .EPS files. This is especially tempting, now 
  237. that Draw can import the .EPS files it exports. Be judicious in your use 
  238. of blends, as well as fountain, pattern and texture fills; try not to fill 
  239. complex objects, containing many nodes, with these. If you have to fill a 
  240. word or phrase with a blend, you should you the Convert To Curves 
  241. command on the Arrange menu and then Break Apart to break the text 
  242. string up into individual objects, each with its own fill.
  243.  
  244. Tapping PostScript Expertise
  245. If youÆll be creating a lot of jobs to be output at a service bureau, you 
  246. should also consider a utility like LaserCheck, from Systems of Merritt 
  247. (205) 660-1240. LaserCheck transforms a laser printer into an 
  248. imagesetter. No, it doesn't increase the resolution or provide usable 
  249. imagesetter output, but it does allow you to proof such things as crop 
  250. and registration marks by scaling down the PostScript output to fit on an 
  251. 8╜   by 11-inch page. It also lists a variety of information, such as what 
  252. fonts the file requires, in the margins. LaserCheck software remains 
  253. resident in the printer (like a font or an error handler) and can be 
  254. downloaded to the printer from either a DOS or Mac system. The cost is 
  255. $149, and it can pay for itself in a very short time by reducing wasted 
  256. film. 
  257. Systems of Merritt also produces a handy booklet called How To Make 
  258. Sure What You See Is What You Get!, by Peter Fink. This is a very 
  259. worthwhile $6.99 investment. And the free PostScript Concepts 
  260. newsletter is definitely worth requesting, since it usually contains a 
  261. variety of output-related tips.
  262.  
  263. Contents Copyright Kazak Communications, 1993.
  264.  
  265.  
  266. Subscription Information
  267.  
  268. While the regular subscription rate is $75 per year (in US dollars for 
  269. Americans, Canadian dollars for Canadians), charter subscriptions to the 
  270. Mastering CorelDRAW newsletter are available for a limited time at $60 
  271. (add $30 U.S. for overseas). A free sample disk, from our exclusive disk-
  272. of-the-month service (value $20), is included with your paid 
  273. subscription. 
  274.  
  275. To subscribe, or for more information, contact:
  276.  
  277. Chris Dickman
  278. 16 Ottawa St.
  279. Toronto, ON M4T 2B6
  280. Canada
  281. 416-924-0759 (voice)
  282. 416-924-4875 (fax)
  283. CServe: 70730,2265
  284.  
  285.  
  286.  
  287.                                                  - 30 -
  288.  
  289.  
  290.  
  291.  
  292.  
  293.